/*
 * Created on 2004-04-26
 */
package org.opencube.data;

import java.io.Serializable;


/**
 * @author <a href="mailto:maciek@fingo.pl">FINGO - Maciej Mroczko</a>
 * TODO: comment
 */
public class Record implements Serializable
{
	private Object[] values = null;
	
	public Record( int columnCount )
	{
		this.values = new Object[ columnCount ];
	}
	
	public Record()
	{
		this.values = null;
	}
	
	public void setSize( int size )
	{
		this.values = new Object[ size ];
	}
	
	public Record( Object[] values )
	{
		this.values = values;
	}
	/**
	 * @return
	 */
	public Object[] getValues()
	{
		return this.values;
	}

	/**
	 * @param values
	 */
	public void setValues( Object[] values )
	{
		this.values = values;
	}
	
	public void setValue( int index, Object value )
	{
		this.values[ index ] = value;
	}
	
}
